<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, user-scalable=no,
				initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
		<title></title>
		<link rel="stylesheet" type="text/css" href="css/normalize.css" />
		<link rel="stylesheet" type="text/css" href="css/arts.css" />
		<link rel="stylesheet" type="text/css" href="./iconfont/iconfont.css"/>
		<script src="js/flexible.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<section class="litter_container">
			<span><a href="">&lt;</a></span><span>文科类</span><span></span>
		</section>
		<header class="litter_container">输入您要查找的信息</header>
		<ul class="nav">
			<li>科目</li>
			<li>位置</li>
			<li>学龄</li>
			<li>价格</li>
		</ul>
		<div class="tab-con">
			<div class="item container" style="display: block;">
				<ul class="nav_litterr">
					<li>语文</li>
					<li>政治</li>
					<li>历史</li>
				</ul>
				<div class="ttt">
					<div class="item_litter" style="display: block;">
						<figure>
							<img src="img/arts/美女1@2x.png" style=" margin: 0.2rem 0;">
							<figcaption>
								<p style="font-size: 0.32rem;">优秀教师教你如何高效刷题优秀教师教你高效刷题优秀教师教你如何高效刷...</p>
								<p style="color: #999999;font-size: 0.266666rem;margin: 0.213333rem 0;">上海市浦东新区888号666弄<span>10.8km <img src="img/arts/导航@2x.png" ></span></p>
								<p style="margin-bottom: 0.106666rem;"><span style="background-color: #f0f3fa;padding: 0.066666rem 0.186666rem;border-radius: 0.186666rem;">线上</span></p>
								<p><span style="color: #ff5435;font-size: 0.4rem;">￥2355<del style="color: #EEEEEE;margin-left: 0.186666rem;">￥5999</del></span> <span>pk</span></p>
							</figcaption>
						</figure>
						<figure>
							<img src="img/arts/美女1@2x.png" style=" margin: 0.2rem 0;">
							<figcaption>
								<p style="font-size: 0.32rem;">优秀教师教你如何高效刷题优秀教师教你高效刷题优秀教师教你如何高效刷...</p>
								<p style="color: #999999;font-size: 0.266666rem;margin: 0.213333rem 0;">上海市浦东新区888号666弄<span>10.8km <img src="img/arts/导航@2x.png" ></span></p>
								<p style="margin-bottom: 0.106666rem;"><span style="background-color: #f0f3fa;padding: 0.066666rem 0.186666rem;border-radius: 0.186666rem;">线上</span></p>
								<p><span style="color: #ff5435;font-size: 0.4rem;">￥2355<del style="color: #EEEEEE;margin-left: 0.186666rem;">￥5999</del></span> <span>pk</span></p>
							</figcaption>
						</figure>
						<figure>
							<img src="img/arts/美女1@2x.png" style=" margin: 0.2rem 0;">
							<figcaption>
								<p style="font-size: 0.32rem;">优秀教师教你如何高效刷题优秀教师教你高效刷题优秀教师教你如何高效刷...</p>
								<p style="color: #999999;font-size: 0.266666rem;margin: 0.213333rem 0;">上海市浦东新区888号666弄<span>10.8km <img src="img/arts/导航@2x.png" ></span></p>
								<p style="margin-bottom: 0.106666rem;"><span style="background-color: #f0f3fa;padding: 0.066666rem 0.186666rem;border-radius: 0.186666rem;">线上</span></p>
								<p><span style="color: #ff5435;font-size: 0.4rem;">￥2355<del style="color: #EEEEEE;margin-left: 0.186666rem;">￥5999</del></span> <span>pk</span></p>
							</figcaption>
						</figure>
						<figure style="margin-bottom: 2.8rem;">
							<img src="img/arts/美女1@2x.png" style=" margin: 0.2rem 0;">
							<figcaption>
								<p style="font-size: 0.32rem;">优秀教师教你如何高效刷题优秀教师教你高效刷题优秀教师教你如何高效刷...</p>
								<p style="color: #999999;font-size: 0.266666rem;margin: 0.213333rem 0;">上海市浦东新区888号666弄<span>10.8km <img src="img/arts/导航@2x.png" ></span></p>
								<p style="margin-bottom: 0.106666rem;"><span style="background-color: #f0f3fa;padding: 0.066666rem 0.186666rem;border-radius: 0.186666rem;">线上</span></p>
								<p><span style="color: #ff5435;font-size: 0.4rem;">￥2355<del style="color: #EEEEEE;margin-left: 0.186666rem;">￥5999</del></span> <span>pk</span></p>
							</figcaption>
						</figure>










					</div>
					<div class="item_litter">
						465465
					</div>
					<div class="item_litter">
						55555
					</div>
				</div>
			</div>
			<div class="item">
				2222
			</div>
			<div class="item">
				33333
			</div>
			<div class="item">
				444444
			</div>
		</div>
		<ul class="footer">
			<li><a href="#"><span>&#xe8b9;</span><span>首页</span></a></li>
			<li><a href="#"><span style="color: orange;">&#xe614;</span><span>课程</span></a></li>
			<li><a href="#"><span>&#xe8bd;</span><span>话题</span></a></li>
			<li><a href="#"><span >&#xe8a0;</span><span>我的</span></a></li>
		</ul>
		

	</body>
</html>
<script type="text/javascript">
	var tab = document.querySelector('.nav');
	var lis = tab.querySelectorAll('li');
	var items = document.querySelectorAll('.item');
	for (var i = 0; i <= lis.length - 1; i++) {
		lis[i].setAttribute('index', i)
		lis[i].onclick = function() {
			var index = this.getAttribute('index');
			console.log(index);
			for (var i = 0; i <= items.length - 1; i++) {
				items[i].style.display = 'none'
			}
			items[index].style.display = 'block'
		}
	}
	var nav_litterr = document.querySelector('.nav_litterr');
	var liss = nav_litterr.querySelectorAll('li');
	var item_litter = document.querySelectorAll('.item_litter');
	for (var i = 0; i <= liss.length - 1; i++) {
		liss[i].setAttribute('index_litter', i);
		liss[i].onclick = function() {
			var index_litter = this.getAttribute('index_litter');
			console.log(index_litter);
			for (var i = 0; i <= item_litter.length - 1; i++) {
				item_litter[i].style.display = 'none'
			}
			item_litter[index_litter].style.display = 'block'
		}
	}
</script>
